package com.common.controller;

import com.common.constants.Constant;
import com.common.utils.JwtTokenUtil;

import javax.servlet.http.HttpServletRequest;

public class BaseController {

    public String getUserId(HttpServletRequest request){
        String accessToken=request.getHeader(Constant.ACCESS_TOKEN);
        String userId= JwtTokenUtil.getUserId(accessToken);
        return userId;
    }
}
